import request from '@/util/request';

export const visit = function(param){
	var url = '/property/visit';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const repair = function(param){
	var url = '/property/repair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getVisit = function(param){
	var url = '/property/getVisit';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRepair = function(param){
	var url = '/property/getRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getVisitDetail = function(param){
	var url = '/property/getVisitDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRepairDetail = function(param){
	var url = '/property/getRepairDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getPatrolList = function(param){
	var url = '/property/getPatrolList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const confirmRepair = function(param){
	var url = '/property/confirmRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getPropertyFee = function(param){
	var url = '/property/getPropertyFee';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const createOrder = function(param){
	var url = '/property/createOrder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getOrder = function(param){
	var url = '/property/getOrder';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyOrders = function(param){
	var url = '/property/getMyOrders';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delRepair = function(param){
	var url = '/property/delRepair';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delVisit = function(param){
	var url = '/property/delVisit';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const keeperComment = function(param){
	var url = '/property/keeperComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}